package com.jifeng.sterilizer.controller;

import com.jifeng.sterilizer.entity.ResponseEntity;
import com.jifeng.sterilizer.service.MemberSmsService;
import com.jifeng.sterilizer.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@RestController
@RequestMapping("sterilizer/sms")
public class SendSmsController {

    @Autowired
    MemberSmsService memberSmsService;

    @GetMapping(value = "/vcode")
    public R sendSms(@RequestParam Map<String, Object> params) {
        R rs = memberSmsService.sendMsg(params);
        return rs;
    }

}
